package main

import (
	"fmt"
)

func main() {
	var a, b int

	for {
		fmt.Scan(&a, &b)
		if a == 0 && a == b {
			return
		}

		fmt.Println(a + b)
	}
}